package com.qfedu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Animal {
    private Integer id;
    private Integer uid;
    private String name;
    private String stamp;
    private String breed;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private String picture;
    private String info;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GAM+8")
    private Date ctime;

}
